home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0294feb.archive
/
000049_donews!crash!u…u!multi!robbage_Sat, 12 Feb 94 04:43:10 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
9KB
Received: by bkhouse.cts.com (V1.17-beta/Amiga)
id <1tb7@bkhouse.cts.com>; Sat, 12 Feb 94 04:43:10 PST
Received: from crash by donews.cts.com with uucp
(Smail3.1.28.1 #18) id m0pVJ49-0001O3C; Sat, 12 Feb 94 07:03 EST
Received: from uniwa.uwa.edu.au by crash.cts.com with smtp
(Smail3.1.28.1 #18) id m0pVIkO-0000OEC; Sat, 12 Feb 94 03:42 PST
Received: from localhost (uucp@localhost) by uniwa.uwa.edu.au (8.6.4/8.6.4) id TAA00248 for bkhouse.cts.com!AmigaE; Sat, 12 Feb 1994 19:42:49 +0800
Received: by multi.multiline.com.au (Smail3.1.28.1 #6)
id m0pVDyi-0003TPC; Sat, 12 Feb 94 14:37 WST
Message-Id: <m0pVDyi-0003TPC@multi.multiline.com.au>
Date: Sat, 12 Feb 1994 14:37:19 +0800 (WST)
In-Reply-To: <9402041533.AA21028@p232.informatik> from "Olliver Moehreke" at Feb 4, 94 04:33:54 pm
X-Mailer: ELM [version 2.4 PL21]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 997
From: robbage@multi.multiline.com.au (Rob Nottage)
To: AmigaE@bkhouse.cts.com
Subject: Re: Amiga E bug! (I'm pretty sure.)
> |> Ok, this is a bit tricky, but is quite doable. My details may be a
> |> bit off, because I don't have the RKMs with me, but here's the gist.
> |> First, to avoid having devices you don't like, use the Dos (I believe)
> |> call, IsFileSystem().
>
> MEGA WARNING !!!
>
> NEVER USE IsFileSystem('DEVICE:') WHEN YOU HAVE LOCKED THE DOSLIST
> FOR READING OR WRITING, BECAUSE YOU WILL GET A MEGA-DEADLOCK...
>
> The reason is, that IsFileSystem(...) has to load every handler,
> that is not already loaded to the system (eg. PRT:). The OS
> then has to update the processport-information of the doslist
> and tries to lock the doslist too, that is already locked by you. :)
Thanks for the warning! I wasn't using IsFileSystem() anyway :)
--
___________________________________
/ \
| robbage@multi.multiline.com.au |
| Rob Nottage 3:690/662.0@FidoNet |
| 41:616/662.0@AmigaNet |
\___________________________________/
From donews!crash!uniwa.uwa.edu.au!multi!robbage Sat, 12 Feb 94 04:43:20 PST
Received: by bkhouse.cts.com (V1.17-beta/Amiga)
id <1tbc@bkhouse.cts.com>; Sat, 12 Feb 94 04:43:20 PST
Received: from crash by donews.cts.com with uucp
(Smail3.1.28.1 #18) id m0pVJ4B-0001wwC; Sat, 12 Feb 94 07:03 EST
Received: from uniwa.uwa.edu.au by crash.cts.com with smtp
(Smail3.1.28.1 #18) id m0pVIkQ-0000DNC; Sat, 12 Feb 94 03:42 PST
Received: from localhost (uucp@localhost) by uniwa.uwa.edu.au (8.6.4/8.6.4) id TAA00263 for bkhouse.cts.com!AmigaE; Sat, 12 Feb 1994 19:42:51 +0800
Received: by multi.multiline.com.au (Smail3.1.28.1 #6)
id m0pVEFN-0003TPC; Sat, 12 Feb 94 14:54 WST
Message-Id: <m0pVEFN-0003TPC@multi.multiline.com.au>
Date: Sat, 12 Feb 1994 14:54:32 +0800 (WST)
In-Reply-To: <9402050945.AA02499@mhd1.moorhead.msus.edu> from "Vincent Platt" at Feb 5, 94 03:45:05 am
X-Mailer: ELM [version 2.4 PL21]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 2252
From: robbage@multi.multiline.com.au (Rob Nottage)
To: AmigaE@bkhouse.cts.com
Subject: Re: HELP!!! (With AppIcons)
> I'm working on an AppIcon project, and I've run into what I think may be a
> bug in E. I'm trying to read the appmessage.arglist[].name. According to
No bug in E. A project Im working on here works fine. It can recognize
the pathname/filename of any drawer/file icon dropped on it and can tell
when it has been double-clicked.
> the RKM, the .name part is there, and according to E, it is not. Ok I can
Of course it is. Check if the .lock is there first.
I don't think you can drop appicons onto appicons.
> handle that. I look up the appmessage structure in 'workbench/workbench'
> and it says that appmessage.arglist is a LONG. So how the heck are you
arglist is a LONG which points to a list of arguments.
Step through the list.
The C examples show exactly how to do it.
use the appmessage.numargs to find how long the list is and use a counter
to step trough the list.
> WHILE dropcount < 3
> WaitPort(myport)
> WHILE appmsg:=GetMsg(myport)
> IF appmsg.numargs = 0
> WriteF('User activated the AppIcon.\nA window here would be nice.\n')
> ELSEIF appmsg.numargs>0
> WriteF('User dropped \d icons on the AppIcon.\n',appmsg.numargs)
> FOR x:= 0 TO appmsg.numargs-1
> dummy1:=appmsg.arglist
> dummy2:=dummy1[x]
> StrCopy(str,dummy2,ALL)
> WriteF('#\d name = \s\n',x+1,str)
What the???? appmsg.arglist points to a list of arguments, not a list of
names. Add this variable somewhere: argptr:PTR TO wbarg
then before this loop you have:
argptr:=appmsg.arglist
then inside the loop refer to argptr.lock and argptr.name for the lock and
name of the icon dropped on your appicon
It's in that RKM example I believe.
> ENDFOR
> ENDIF
> ReplyMsg(appmsg)
> ENDWHILE
> INC dropcount
> ENDWHILE
--
___________________________________
/ \
| robbage@multi.multiline.com.au |
| Rob Nottage 3:690/662.0@FidoNet |
| 41:616/662.0@AmigaNet |
\___________________________________/
From donews!crash!uniwa.uwa.edu.au!multi!robbage Sat, 12 Feb 94 04:43:30 PST
Received: by bkhouse.cts.com (V1.17-beta/Amiga)
id <1tbh@bkhouse.cts.com>; Sat, 12 Feb 94 04:43:30 PST
Received: from crash by donews.cts.com with uucp
(Smail3.1.28.1 #18) id m0pVJ4D-0001OUC; Sat, 12 Feb 94 07:03 EST
Received: from uniwa.uwa.edu.au by crash.cts.com with smtp
(Smail3.1.28.1 #18) id m0pVIkR-0000FjC; Sat, 12 Feb 94 03:42 PST
Received: from localhost (uucp@localhost) by uniwa.uwa.edu.au (8.6.4/8.6.4) id TAA00271 for bkhouse.cts.com!AmigaE; Sat, 12 Feb 1994 19:42:52 +0800
Received: by multi.multiline.com.au (Smail3.1.28.1 #6)
id m0pVEYt-0003TPC; Sat, 12 Feb 94 15:14 WST
Message-Id: <m0pVEYt-0003TPC@multi.multiline.com.au>
Date: Sat, 12 Feb 1994 15:14:42 +0800 (WST)
In-Reply-To: <5883:77010@fantasyfarm.com> from "Bernie Cosell" at Feb 9, 94 09:23:00 pm
X-Mailer: ELM [version 2.4 PL21]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 988
From: robbage@multi.multiline.com.au (Rob Nottage)
To: AmigaE@bkhouse.cts.com
Subject: Re: Bugs in the Mod() function
> an integer between 0 and n-1. Well, it ain't so in E. A simple
> test reveals:
>
> Modulo: Mod(11,8) = 3
Yep, you found a bug that a lot of us have already seen :-)
> Which is clearly broken. In the course of pursuing this, I discovered
> that simple division ain't a prize, either:
>
> Dividing 11 / 8 = 1
> Dividing 6 / 8 = 0
> Dividing 1 / 8 = 0
> Dividing -4 / 8 = 0
> Dividing -9 / 8 = -1
> Dividing -14 / 8 = -1
All that looks correct to me.. are you expecting maybe floating point
numbers from integers?
> It is astounding to me to try to understand arithmetic in an environment
> where:
>
> (A - B) / B does *NOT* equal (A / B) - 1
>
> /Bernie\
Since you aren't using floating point math, what else can you expect?
--
___________________________________
/ \
| robbage@multi.multiline.com.au |
| Rob Nottage 3:690/662.0@FidoNet |
| 41:616/662.0@AmigaNet |
\___________________________________/
From donews!crash!mhd1.moorhead.msus.edu!platt Sun, 13 Feb 94 01:23:50 PST
Received: by bkhouse.cts.com (V1.17-beta/Amiga)
id <1teb@bkhouse.cts.com>; Sun, 13 Feb 94 01:23:50 PST
Received: from crash by donews.cts.com with uucp
(Smail3.1.28.1 #18) id m0pVMIg-0001PQC; Sat, 12 Feb 94 10:30 EST
Received: from mhd1.moorhead.msus.edu by crash.cts.com with smtp
(Smail3.1.28.1 #18) id m0pVM49-00006SC; Sat, 12 Feb 94 07:15 PST
Received: by mhd1.moorhead.msus.edu (5.65/DEC-Ultrix/4.3)
id AA23207; Sat, 12 Feb 1994 09:16:27 -0600
Message-Id: <9402121516.AA23207@mhd1.moorhead.msus.edu>
Date: Sat, 12 Feb 1994 09:16:27 -0600 (CST)
In-Reply-To: <1d.105588.1351.0CEDF2A0@synapse.org> from "Bob Monaghan" at Feb 11, 94 12:36:00 pm
X-Mailer: ELM [version 2.4 PL20]
Content-Type: text
Content-Length: 558
From: platt@mhd1.moorhead.msus.edu (Vincent Platt)
To: AmigaE@bkhouse.cts.com
Subject: Re: Types!
> BTW I'm trying to convert the AmigaDos 3.1 .i includes into .m files
> with IConvert.
>
> Needless to say, there are some .i files that don't want to work. (eg.
> exec/ables.i or exec/exec.i or exec/initializers.i)
>
> Any Suggestions? (I really want to have these includes!)
First convert the .h files into .i files using the C preprocessor. This
will strip out crap that may confuse iconvert. Then iconvert your new
files to .m files. Note that I haven't actually done this myself, but I
have heard it works. It's worth looking into at any rate.